package com.soenkerohde.logging
{
    import mx.logging.ILogger;
    
    /**
     * @author Sönke Rohde (opensource@soenkerohde.com, http://soenkerohde.com)
     * @license LGPL (http://www.gnu.org/licenses/lgpl.html)
     *
     * The Factory hides the concrete implementation.
     * This example returnds an instance of the SOSLogger but if you like to
     * use another logging tool simply switch it here.
     * When there are more logging tools supported this class has to by more dynamic.
     * 
     */
    public class LogFactory
    {
        /**
         * @param category the source of the logs
         * the Logger can be constructed with a reference (this) or a String
         * 
         */
        public static function getLogger( category:Object ) : ILogger
        {
            return new SOSLogger( category );
        }
        
    }
}